

using UnityEngine;
public class InputService : ILogic
{
    public InputMap inputMap;
    public void OnInit()
    {
        if (inputMap == null)
        {
            inputMap = new InputMap();
        }
        inputMap.Enable();

    }

    public void OnUpdate()
    {

    }
    public void UnInit()
    {
        inputMap.Disable();
    }
    public void OnEnterState()
    {
       
    }
    public Vector2 Move => inputMap.Player.Move.ReadValue<Vector2>();
    public Vector2 PointerPos =>inputMap.UI.Pointer.ReadValue<Vector2>();

    public bool isAtk =>inputMap.Player.Attack.ReadValue<float>()!=0;

}